package phenix.com.phenixdemo.ui;


import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import phenix.com.phenixlib.util.Logger;

/**
 * A simple {@link Fragment} subclass.
 */
public class BaseFragment extends Fragment {


    public BaseFragment() {
        // Required empty public constructor
    }
    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        Logger.d("--------onAttach(Fragment)---------");
    }
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Logger.d("--------onCreate(Fragment)---------");
    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        Logger.d("--------onCreateView(Fragment)---------");
        return super.onCreateView(inflater,container,savedInstanceState);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        Logger.d("--------onActivityCreated(Fragment)---------");
    }
    @Override
    public void onStart() {
        super.onStart();
        Logger.d("--------onStart(Fragment)---------");
    }

    @Override
    public void onResume() {
        super.onResume();
        Logger.d("--------onResume(Fragment)---------");
    }

    @Override
    public void onPause() {
        super.onPause();
        Logger.d("--------onPause(Fragment)---------");
    }

    @Override
    public void onStop() {
        super.onStop();
        Logger.d("--------onStop(Fragment)---------");
    }
    @Override
    public void onDestroyView() {
        super.onDestroyView();
        Logger.d("--------onDestroyView(Fragment)---------");
    }
    @Override
    public void onDestroy() {
        super.onDestroy();
        Logger.d("--------onDestroy(Fragment)---------");
    }
    @Override
    public void onDetach() {
        super.onDetach();
        Logger.d("--------onDetach(Fragment)---------");
    }

}
